home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / dcon11.zip / DCFILDAT.DOC < prev    next >
Text File  |  1992-02-06  |  4KB  |  120 lines

  1. Program:        DCFILDAT
  2. Package:        Part of the DCon Utility Set
  3. Version:        1.1
  4. Date:           February 6, 1992
  5. Author:         George Spafford
  6.  
  7. Purpose:
  8.  
  9. To compare the file dates in a source directory (possibly the server)
  10. to the file dates in a target directory.  If the dates are NOT equal,
  11. then either copy, delete or run a batch file.
  12.  
  13.  
  14. Procedure:
  15.  
  16. Place DCFILDAT.EXE in a directory that is in your path.  Invoke it as
  17.  
  18.       DCF /S:Source /T:Target </D></C>
  19.       
  20.         /S:Source    This is the source directory.  This can NOT be a
  21.                      file specification.
  22.    
  23.         /T:Target    This is the target directory that is to be compared
  24.                      to the source.
  25.    
  26.         ACTION Tokens:
  27.  
  28.         /D           Delete the target file(s).
  29.  
  30.         /C           Copy source files to the target directory.
  31.    
  32.         no token     Run the DCFD.BAT file.  Information will be passed to
  33.                      the .BAT file as follows:
  34.    
  35.                       %1  Source Path and File
  36.                       %2  Target Path
  37.                       %3  Target Path and File Name
  38.  
  39. At work, we have an AS/400 D20 running PC support.  Any of you out there using
  40. PC Support know the love/hate relation ship that exists with the product.  This
  41. program essentially performs the PCSupdate function, but lacks the directory
  42. abilities of PCS.  This program, however, is  1/8th the size and much faster.
  43.  
  44. With this analogy in mind, say you wanted to update your PC Support files, or
  45. at least check them.
  46.  
  47.       DCFILDAT /S:I:\QIWSLFR /T:C:\PCS /C
  48.   
  49. If the files in I:\QIWSFLR have different dates than the files in C:\PCS, then 
  50. they will be copied to C:\PCS.
  51.  
  52. Say you need a more complex file routine, or you have a homegrown product that
  53. you would like to use, use the DCFD.BAT file option to run your own set of
  54. routines if a logical test proves true.
  55.  
  56. Example DCFD.BAT :
  57.  
  58. If exist %3 chmod - %3     <-   If the target path + File name exists,
  59.                                 then strip the attributes from it.
  60. if exist %1 Copy %1 %2     <-   If the file exists in the source dir, copy it     
  61. if exist %3 chmod -r %3    <-   If the new target file exists, set it to
  62.                                 read-only.
  63.                             
  64.  
  65. HISTORY:
  66.  
  67.     v1.1   02/06/92  
  68.     
  69.            Sorry for the bugs in the last program guys.  I finally gave
  70.            up on the new/old logic and just did the "Shotgun" approach.
  71.            If the file dates differ, then perform an action.  Simplistic
  72.            but effective.
  73.            
  74.     v1.0   12/09/92
  75.     
  76.            Initial buggy release.             
  77.  
  78.  
  79.  
  80. Register Me:
  81.  
  82.  
  83. This package is a little different from some utility packages that are on the
  84. market today.  If you only like one or two programs, the individual programs
  85. can be registered for $5 per concurrently used copy.  The bargain (in my
  86. eyes) is that the whole package is only $20.  It is up to you whether or not
  87. you want the entire package or only specific files.  If this package, or one
  88. of the utilities aids you, you should register your copy.  For example, say you
  89. want DCMAP & DCUPDAY, then you need only send $10.  But please, if you use this
  90. software, register it.
  91.  
  92.                 Sincerely,
  93.  
  94.                 George Spafford
  95.                 3001 LakeShore Drive, #329
  96.                 St. Joseph, MI 49085
  97.  
  98.         Data:  (616) 468-5026  Queued Access BBS 14.4Kb USR Dual HST
  99.                                FIDOnet: 1:2340/0 NEC/NC Site
  100.                                Sysop:   Tim Akright
  101.  
  102.  
  103. NOTE:  DCFILDAT IS A PART OF THE DIRECTORY CONTROL PACKAGE.  THE FOLLOWING
  104.        NOTICE PERTAINS TO DCFILDAT AS WELL.
  105.         
  106. DIRECTORY CONTROL AND ALL OF ITS COMPONENT FILES ARE DISTRIBUTED AS IS.  
  107. THE AUTHOR (GEORGE SPAFFORD) MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR 
  108. IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY OR 
  109. FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS SOFTWARE AND 
  110. DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DAMAGES, 
  111. INCLUDING LOST PROFITS, LOST SAVINGS, OR ANY OTHER INCIDENTAL OR 
  112. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR THE INABILITY TO USE 
  113. THIS PROGRAM.
  114. -------------------------------------------------------------------------
  115.         
  116.  
  117.                                                                                        
  118.  
  119.  
  120.